#ifndef _FS_MAP_H_
#define _FS_MAP_H_

typedef FILE FSFile;

typedef enum
{
   FS_SEEK_SET,   /* seek from begin */
   FS_SEEK_CUR,   /* seek from current */
   FS_SEEK_END    /* seek from end */
} FSSeekFileMode;


void FS_InitFile( FSFile *p_file );
BOOL FS_OpenFile( FSFile *p_file, const char *path );
BOOL FS_CloseFile( FSFile *p_file );
u32 FS_GetLength( FSFile *p_file );
s32 FS_ReadFile( FSFile *p_file, void *dst, s32 len );
BOOL FS_SeekFile( FSFile *p_file, s32 offset, FSSeekFileMode origin );


#endif //